! function(m, $) {
	var vm = new Vue({
		el: '#main',
		data: {
			dataObj: '',
			id: '',
			message: '',
			content:'',
			refresh:''
		},
		mounted: function() {
			this.init();
		},
		methods: {
			init: function() {
				mui.plusReady(function() {
					var current = plus.webview.currentWebview();
					vm.id = current.newsid;
					token = plus.storage.getItem('token');
					mui.ajax(rutour.law.view + token, {
						dataType: 'json',
						type: 'get',
						data: {
							id: vm.id
						},
						success: function(data) {
							if(data.code == 200) {
								console.log(data)
								vm.dataObj = data.data;
								vm.content = data.data.content;
								vm.refresh = data.data.content;
							} else {
								mui.toast(data.msg)
							};
						}
					})
				});
			},
			openSle: function() {
				$('.mui-title-icon').css({
					'opacity': '0',
					'display': 'none'
				});
				$(".mui-search").css("display", 'block').animate({
					width: '246px'
				}, 100);
				$('.mui-input-clear').focus();
			},
			closeSle: function() {
				$(".mui-search").animate({
					width: '0'
				}, 100).css("display", 'none');
				$('.mui-title-icon').css({
					'opacity': '1',
					'display': 'block'
				});
			},
			inputCha: function() {
				var val = vm.message,shaodn
					keyWordReg = new RegExp("([\s\S]*)" + val + "([a-z.]*)([\s\S]*)", "gmi");
                vm.content=vm.refresh;
				if(val != '') {
                   vm.content = vm.content.replace(keyWordReg, '<span style="color:red">$&</span>')
				}
			}
		}
	});

}(mui, jQuery)